package com.dz.customer.domain.entity;

import com.dz.common.core.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName : User
 * @Description :
 * @Author : ming
 * @Date: 2021-03-06 14:13
 **/
@Table(name="tb_user")
@Data
@Entity
public class User extends BaseEntity implements Serializable {
    @Id
    private Long id;
    @Column(name = "username")
    private String userName;
    @Column(name = "password")
    private String passWord;
    @Column(name = "phone")
    private String phone;
    @Column(name = "email")
    private String email;
    @Column(name = "source_type")
    private String sourceType;
    @Column(name = "nick_name")
    private String nickName;
    @Column(name = "name")
    private String name;
    @Column(name = "status")
    private String status;
    @Column(name = "head_pic")
    private String headPic;
    @Column(name = "qq")
    private String qq;
    @Column(name = "mobile_check_flag")
    private String mobileCheckFlag;
    @Column(name = "is_email_check")
    private String emailCheckFlag;
    @Column(name = "sex")
    private Integer sex;
    @Column(name = "user_level")
    private Integer userLevel;
    @Column(name = "points")
    private Long points;
    @Column(name = "experience_value")
    private Long experienceValue;
    @Column(name = "birthday")
    private Date birthday;
    @Column(name = "last_login_time")
    private Date lastLoginTime;
}
